<!--
 * @Description: * 
 * @Date: 2020-12-27 00:51:20
 * @LastEditTime: 2020-12-27 14:35:12
 * @Author: Ji YingHao
 * @FilePath: /nuxt-app/pages/page-1-1.vue
-->
<template>
   <div class="page-1-1">
       page-1-1
       {{ $route.params.name }}
       <button @click="zzzFun">zzz</button>
       <button @click="xxxFun">xxx</button>
   </div>
</template>
<script>
   export default { 
      name: "page-1-1",
      components: {},
      data() {
         return {}
      },
      computed: {},
      mounted: function() {
          console.log( this.$route );
      },
      methods: {
          zzzFun(){
            this.$router.push('/zzz');
          },
          xxxFun(){
              this.$router.push('/xxx');
          }
      }
   }
</script>
<style lang="scss">
.page-1-1{
    
}
</style>